package com.towker.frame.dao.warehouse;

import java.util.Map;

import org.springframework.stereotype.Repository;

import com.towker.core.db.BaseDao;
import com.towker.frame.model.warehouse.GoodsInOut;

@Repository
public class GoodsInOutDao  extends BaseDao<GoodsInOut, Long>{

	@Override
	public Class getEntityClass() {
		return GoodsInOut.class;
	}

	public int getPreCount(Map map, int maxId) {
		Integer totalCount = (Integer) this.getSqlSessionTemplate().selectOne(getIbatisMapperNamespace() + ".getPreCount", map);
		return totalCount.intValue();
	}

}
